#!/bin/env python

#Texas Hold'em EKG python plugin
#author: Slawomir Rozbicki slawek@rozbicki.eu
#GNU GPL v.3

import config#, ekg
from dealer import Dealer
from deck import Deck
from player import Player
from table import Table
from parser import Parser

t = Table(Deck())
players = []
d = Dealer()

def init():
    ekg.printf("generic", "Zaladowano Texas-Holdem-EKG")

def deinit():
    ekg.printf("generic", "Wylaczono Texas-Holdem-EKG")

def handle_msg(uin, name, msgclass, text, time, secure):
    if text[:9] == "!chamskie":
        cmd = "/msg " + `uin` + " %s" % joke()
        ekg.command(cmd)

#zrobmy tu rozgrywke, zobaczymy jak to wyjdzie

